package com.demo.service.User;

import com.demo.model.Role.Role;
import com.demo.model.SysUser.SysUser;
import com.demo.model.SysUser.SysUserQuery.SysUserQuery;
import com.demo.service.BaseService;

import java.util.List;


public interface SysUserservice extends BaseService<SysUser, SysUserQuery> {

    SysUser getUserOneByUid(Long uid);

    SysUser getUserOneByName(String username);

    int addUser(SysUser sysUser);

    //通过用户id查找角色
    List<Role> getRolesByUid(Long uid);

}
